<div class="form blue">

{WidgetActiveForm id="user-form" enableAjaxValidation=0 model=$model}

	<p class="note"><span class="required">*</span> - поля обязательные для заполнения.</p>

	{afErrorSummary}

	<div class="row">
                {afLabelEx property='name'}
                {array assign="attr" size=25 maxlength=25}
                {afTextField property='name' attr=$attr}
                {afError property='name'}
	</div>

        <div class="row">
                {afLabelEx property='surname'}
                {array assign="attr" size=25 maxlength=25}
                {afTextField property='surname' attr=$attr}
                {afError property='surname'}
	</div>

        <div class="row">
                {afLabelEx property='birthdate'}
                {afError property='birthdate'}
                {include file="../layouts/include/datePicker.tpl" model=$model attribute='birthdate'}
	</div>

        <div class="row">
                {afLabelEx property='city'}
                {array assign="attr" size=25 maxlength=25}
                {afTextField property='city' attr=$attr}
                {afError property='city'}
	</div>

        <div class="row">
                {afLabelEx property='mobile_phone'}
                {array assign="attr" size=25 maxlength=25}
                {afTextField property='mobile_phone' attr=$attr}
                {afError property='mobile_phone'}
	</div>

        <div class="row">
                {afLabelEx property='home_phone'}
                {array assign="attr" size=25 maxlength=25}
                {afTextField property='home_phone' attr=$attr}
                {afError property='home_phone'}
	</div>

        <div class="row">
                {afLabelEx property='icq'}
                {array assign="attr" size=25 maxlength=25}
                {afTextField property='icq' attr=$attr}
                {afError property='icq'}
	</div>

        <div class="row">
                {afLabelEx property='home_site'}
                {array assign="attr" maxlength=200}
                {afTextField property='home_site' attr=$attr}
                {afError property='home_site'}
	</div>

        <div class="row">
                {afLabelEx property='about'}
                {array assign="attr" rows=6 cols=50}
                {afTextArea property='about' attr=$attr}
                {afError property='about'}
	</div>        

        <div class="row buttons">
            {if $model->isNewRecord}
                {assign var="text" value="Добавить"}
            {else}
                {assign var="text" value="Сохранить"}
            {/if}
            {array assign="htmlOptions" class="popup-button submit"}
            {chtmlLink text="<span>"|cat:$text|cat:"</span>" url="#" htmlOptions=$htmlOptions}
	</div>

{/WidgetActiveForm}

<div class="clear-floating"></div>

</div><!-- form -->